﻿using System.Net;

namespace Competition.Admin.Web.ResultModels
{
    /// <summary>
    /// 返回结果
    /// </summary>
    public class MessageBase
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; } = true;
        /// <summary>
        /// 错误代码
        /// </summary>
        public HttpStatusCode Error { get; set; } = HttpStatusCode.OK;
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrorMsg { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }
    }
}